package cn.buk.tms.dto;

import cn.buk.tms.entity.misc.CustomerTravelZone;

public class CustomerTravelZoneDto {

  private int id;

  private int travelZoneId;

  private int cityId;

  private String cityName;

  public static CustomerTravelZoneDto createdBy(CustomerTravelZone zone) {
    CustomerTravelZoneDto dto =new CustomerTravelZoneDto();
    dto.setId(zone.getId());
    dto.setTravelZoneId(zone.getTravelZoneId());
    dto.setCityId(zone.getCity().getId());
    dto.setCityName(zone.getCity().getCityName());
    return dto;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public int getTravelZoneId() {
    return travelZoneId;
  }

  public void setTravelZoneId(int travelZoneId) {
    this.travelZoneId = travelZoneId;
  }

  public int getCityId() {
    return cityId;
  }

  public void setCityId(int cityId) {
    this.cityId = cityId;
  }

  public String getCityName() {
    return cityName;
  }

  public void setCityName(String cityName) {
    this.cityName = cityName;
  }
}
